﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="searchThumbResult.ascx.cs" Inherits="VISS.Web.Frontend.Modules.User.Profile.SearchThumbResultControl" %>

<%for (int i = 0; i < SearchResult.Count; i++) { %>
    <div class="search-thumb-box">
        <div class="top">
	        <div class="top-icon">
	            <img src="<%=AppSettings.ResourcesPath %>/images/icon-light-on.jpg" />
	        </div>
	        <a class="name" href="/profile?u=<%=SearchResult[i].UserKey %>"><%=SearchResult[i].Name %></a>
	    </div>
	    
        <div class="top-info">
        <%=SearchResult[i].Age %> 
        Tuổi,
         <%=SearchResult[i].City %>
        </div>
        
        <div class="bottm">
	        <div class="avatar">
	            <a href="/profile?u=<%=SearchResult[i].UserKey %>"><img src="<%=VISS.Web.Frontend.AvatarUtils.GetAvatarThumbPath(SearchResult[i].AvatarFileName, SearchResult[i].AvatarImageStoreID, SearchResult[i].Gender, SearchResult[i].AvatarStatus) %>" /></a>
	        </div>
            <div class="right">
	            <div class="right-item">
	                <% if (CanDoAction) { %>
	                    <a href="album?u=<%=SearchResult[i].UserKey %>"><img src="<%=AppSettings.ResourcesPath %>/images/icon-view-picture.jpg" title="Xem hình ảnh của <%=SearchResult[i].Name %>" /></a>
	                <% } else { %>
	                    <a href="javascript:void(0);" onclick="jAlert(VarifiedAccountRequired);"><img src="<%=AppSettings.ResourcesPath %>/images/icon-view-picture.jpg" title="Xem hình ảnh của <%=SearchResult[i].Name %>" /></a>
	                <% } %>
	            </div>
	            <div class="right-item">
	                <img src="<%=AppSettings.ResourcesPath %>/images/icon-send-message.jpg" onclick="SendMessagePopup('<%= SearchResult[i].UserKey %>');" title="Gửi tin nhắn cho <%=SearchResult[i].Name %>" />
	            </div>
	            
	           
            </div>
            <div class="under"><img src="<%=AppSettings.ResourcesPath %>/images/border-avatar.jpg" /></div>
        </div>
    </div>
<%} %>

